package com.xuzong.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * 
 * @TableName tb_area
 */
@TableName(value ="tb_area")
@Data
public class TbArea implements Serializable {
    /**
     * 地区ID
     */
    @TableId(type = IdType.AUTO)
    private Integer areaId;

    /**
     * 地区名称
     */
    private String areaName;

    /**
     * 地区上级ID
     */
    private Integer parentId;

    @TableField(exist = false)
    private List<TbArea> children;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}